import request from '@/utils/request'

// 发包商分页查询
export function apiMerchantPage(data) {
    return request({
        method: 'post',
        url: '/operation/merchant/page',
        data: data,
        headers: {
            "Content-Type": "application/json"
        }
    })
}

// 修改发包商
export function apiMerchantUpdate(data) {
    return request({
        method: 'post',
        url: '/operation/merchant/update',
        data: data,
        headers: {
            "Content-Type": "application/json"
        }
    })
}

// 新建发包商
export function apiMerchantCreate(data) {
    return request({
        method: 'post',
        url: '/operation/merchant/create',
        data: data,
        headers: {
            "Content-Type": "application/json"
        }
    })
}
// 发包商详情
export function apiMerchantDetail(data) {
    return request({
        method: 'post',
        url: '/operation/merchant/detail',
        data: data,
        headers: {
            "Content-Type": "application/json"
        }
    })
}
// 发包商开启关闭
export function apiMerchantUpdateStatus(data) {
    return request({
        method: 'post',
        url: '/operation/merchant/updateStatus',
        data: data,
        headers: {
            "Content-Type": "application/json"
        }
    })
}

